package com.example.mp.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum SexEnum implements IEnum<String> {
    MAN("1", "男"),
    WOMEN("2", "女");

    private String val;
    private String desc;

    SexEnum(String val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    @Override
    public String toString() {
        return this.desc;
    }

    @Override
    public String getValue() {
        return val;
    }
}
